import { createApp } from "vue";
import App from "./App.vue";

import { createDiscreteApi } from "naive-ui";

//引入store
import store from '@/store';

// 引入 Normalize.css
import "normalize.css";
// 引入 全局样式
import "./assets/global.scss";

import router from "@/router";

// 调createDiscreteApi 
const { message } = createDiscreteApi(["message"]);


// 创建应用
const app = createApp(App);

app.use(router);
app.config.globalProperties.$message = message;
app.use(store);


// 挂载应用
app.mount("#app");